<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="../Templates/main-nosidebar.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- Código del Icono -->			
<link href="../images/logo.ico" type="image/x-icon" rel="shortcut icon" />				
<!-- InstanceBeginEditable name="doctitle" -->
<title>Ofertas Personas disponibles</title>
<script src="../scripts/gen_validate.js" type="text/javascript"></script>
<link href="../styles/tesis.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="../scripts/jquery.min.js"></script>

<!-- start jquery ui -->
<link href="../scripts/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="../scripts/jquery-ui.min.js"></script>
<script type="text/javascript" src="../scripts/gen_validate.js"></script>
<!-- end jquery ui -->
<?php
		 /*Conexion a la base de datos */
	require_once("../conexion/conexion.php");
?>

<script type="text/javascript">

$(document).ready(function() {
    $("#tabs").tabs();
     $(".Inicializar").attr('value','');
	 
  $.ajax({
                                    url: "../lib/BusOfe.php",
                                    type: "GET",
                                    data: "&Opcion=1",
                                    success: function(datos){

                                    if(datos == 0)
                                    {
                                            alert("No se encuentran ofertas");
											$('#Respuesta').hide();
                                    }
                                    else
                                        {
                                            $('#Respuesta').show();
                                            $('#Respuesta').html(datos);
                                            $("#search-result tr:nth-child(odd)").addClass("striped");
                                            $("#search-result tr").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});
                                 }

                                    }
									
                    });
	 
	 $.ajax({
                                    url: "../lib/BusOfe.php",
                                    type: "GET",
                                    data: "&Opcion=2",
                                    success: function(datos1){

                                    if(datos1 == 0)
                                    {
                                            alert("No se encuentran ofertas");
											$('#Respuesta2').hide();
                                    }
                                    else
                                        {
                                            $('#Respuesta2').show();
                                            $('#Respuesta2').html(datos1);
                                            $("#search-result tr:nth-child(odd)").addClass("striped");
                                            $("#search-result tr").mouseover(function(){$(this).addClass("over");}).mouseout(function(){$(this).removeClass("over");});

                                        }

                                    }
                    }); 
	 
  });//Fin de document ready

function showLogin()
{
$(".loginbox").slideToggle("slow");
}


function mostrarpag(pag, ocultar, mostrar)
{
    $('.'+ocultar).hide();
    $('.'+mostrar+pag).show();
}				
       

 function mostrarpag2(pag2, ocultar2, mostrar2)
{
    $('.'+ocultar2).hide();
    $('.'+mostrar2+pag2).show();
}	

</script>

<!-- InstanceEndEditable -->
<link href="../styles/tesis.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="../scripts/jquery.min.js"></script>

<!-- start jquery ui -->
<link href="../scripts/jquery-ui.css" rel="stylesheet" type="text/css"/>
<script src="../scripts/jquery-ui.min.js"></script>
<script type="text/javascript" src="../scripts/error_list.js"></script>
<script src="../scripts/gen_validate.js" type="text/javascript"></script>
<!-- end jquery ui -->
<script type="text/javascript">
$(document).ready(function() {
   
    $("#tabs").tabs();
  });
function showLogin()
{
$(".loginbox").slideToggle("slow");
}

//datepicker

	$(function() {
		$( ".datepicker" ).datepicker({
			showOn: "button",
			buttonImage: "images/calendar.gif",
			buttonImageOnly: true
		});
	});

</script>

<!-- Script Accordeon Menu -->
<script type="text/javascript" src="../scripts/ddaccordion.js"></script>
<script type="text/javascript">


ddaccordion.init({ //top level headers initialization
	headerclass: "expandable", //Shared CSS class name of headers group that are expandable
	contentclass: "categoryitems", //Shared CSS class name of contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["", "openheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["prefix", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})

ddaccordion.init({ //2nd level headers initialization
	headerclass: "subexpandable", //Shared CSS class name of sub headers group that are expandable
	contentclass: "subcategoryitems", //Shared CSS class name of sub contents group
	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover
	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
	collapseprev: true, //Collapse previous content (so only one open at any time)? true/false 
	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
	animatedefault: false, //Should contents open by default be animated into view?
	persiststate: true, //persist state of opened contents within browser session?
	toggleclass: ["opensubheader", "closedsubheader"], //Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
	togglehtml: ["none", "", ""], //Additional HTML added to the header when it's collapsed and expanded, respectively  ["position", "html1", "html2"] (see docs)
	animatespeed: "fast", //speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
	oninit:function(headers, expandedindices){ //custom code to run when headers have initalized
		//do nothing
	},
	onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
		//do nothing
	}
})


</script>

<!-- Script Accordeon Menu -->
<style type="text/css">
<!--
.Estilo1 {
	font-size: 12px;
	font-style: italic;
	font-weight: bold;
}
.Estilo5 {font-style: italic; font-size: 12px;}
.Estilo6 {color: #FF0000}
.Estilo7 {font-size: 14px}
.Estilo8 {font-size: 16px}
.Estilo9 {
	font-weight: bold;
	font-size: 14px;
} 
.Estilo12 {font-size: 11px}
-->
</style>

<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
</head>

<body class="no-sidebar">

<div class="container">
  <div class="header"><!-- #BeginLibraryItem "/Library/loginbox.lbi" -->
    <div class="loginButton login"><a onclick="showLogin()" href="javascript:;">Login</a></div>
    <div class="logoutButton logout" style="display:none"><a onclick="javascript:logout('../lib/logoff.php')" href="javascript:;">Bienvenido <?php if(isset($_SESSION['USU_NAME'])){ echo $_SESSION['USU_NAME'];} ?> <br /> Logout</a></div> 
<div class="loginbox">
    <form id="frm_login" name="frm_login" method="post" action="">
      <p>
        <label for="log_username">Usuario: </label>
        <input name="log_username" type="text" class="input-width" id="log_username" />
      </p>
      <p>
        <label for="log_password">Password: </label>
        <input name="log_password" type="password" class="input-width" id="log_password" /><span class="submit"><a href="javascript:validarIngresoInd2('../lib/validarUsuario.php');">&nbsp;</a> </span>
      </p>
    </form>
  </div><!-- end .loginbox--><!-- #EndLibraryItem --><!-- #BeginLibraryItem "/Library/logo.lbi" --><a href="#"><img src="../images/logo2.jpg" alt="Insert Logo Here" name="Insert_logo" width="180" height="90" id="Insert_logo" style="background: #f7d10e; display:block;" /></a><!-- #EndLibraryItem --><!-- #BeginLibraryItem "/Library/navigation.lbi" --><div class="navigation">
      <ul class="nav">
        <li><a href="ofp_buscar.php">Ofertas de empleo</a></li> 
        <li><a href="../cit_registrar2.php">Participa</a></li>
        <li><a href="../index.php">Quienes Somos</a></li>
		  <li><a href="../index.php">Inicio</a></li>
      </ul>
    </div><!-- #EndLibraryItem --><!-- end .header --></div>
  <div class="content"><!-- InstanceBeginEditable name="contenido" -->
       <div class="indexsidebar">
      <div class="bienvenida">
        <h5>SAPSIL</h5>
  <a href="../Ayuda/ayuda_pcd/ayuda_sapsil.chm"><h5 align="center">Ayuda
        <p align="center"><img src="../images/ayuda.gif" width="107" height="98" /></p></h5></a>
      </div>

    </div>
    <div class="indexcontent">
    
	<form action="" method="post" name="form1" class="frm" id="form1">
   <h4><font color="#0000A0">Ofertas de Empleo</font></h4>
      <p><br clear="all"/>
      </p>
      <div id="Respuesta" style="display:none">
      </div>   
     <p>&nbsp;</p>
    </form>
	<br/>
		<form action="" method="post" name="form2" class="frm" id="form2">
   <h4><font color="#0000A0">Personal disponible</font></h4>
       <p>      
		<br clear="all"/>
      </p>
    <div id="Respuesta2" style="display:none">
      </div>   
     </form>

    </div>

  <!-- InstanceEndEditable --><!-- end .content -->  </div><!-- #BeginLibraryItem "/Library/footer.lbi" --><div class="footer">
       <p>Derechos Reservados copyright ©</p> 
    <!-- end .footer --></div><!-- #EndLibraryItem --><!-- end .container --></div>
	</body>
<!-- InstanceEnd --></html>
